package io.renren.modules.tag.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.tag.dao.TagRulesDao;
import io.renren.modules.tag.entity.TagRulesEntity;
import io.renren.modules.tag.service.TagRulesService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("tagRulesService")
public class TagRulesServiceImpl extends ServiceImpl<TagRulesDao, TagRulesEntity> implements TagRulesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TagRulesEntity> page = this.page(
                new Query<TagRulesEntity>().getPage(params),
                new QueryWrapper<TagRulesEntity>()
        );

        return new PageUtils(page);
    }

}